/// data : [{"id":1,"imagepath":"https://alifei05.cfp.cn/creative/vcg/veer/800/new/VCG41N883173568.jpg","imgorder":1,"title":"美女","url":null,"type":0},{"id":2,"imagepath":"https://tenfei01.cfp.cn/creative/vcg/veer/800/new/VCG41N638593416.jpg","imgorder":2,"title":"美女","url":null,"type":0},{"id":3,"imagepath":"https://tenfei04.cfp.cn/creative/vcg/800/new/VCG211183376288.jpg","imgorder":3,"title":"遗迹","url":null,"type":0},{"id":4,"imagepath":"https://tenfei04.cfp.cn/creative/vcg/800/new/VCG211263006123.jpg","imgorder":4,"title":"故宫","url":null,"type":0},{"id":5,"imagepath":"https://tenfei01.cfp.cn/creative/vcg/800/new/VCG211263006126.jpg","imgorder":5,"title":"故宫","url":null,"type":0}]
/// code : 0
/// msg : "操作成功！"

class HomeBannerBeanResult {
  HomeBannerBeanResult({
      List<HomeBannerBean>? data,
      int? code, 
      String? msg,}){
    _data = data;
    _code = code;
    _msg = msg;
}

  HomeBannerBeanResult.fromJson(dynamic json) {
    if (json['data'] != null) {
      _data = [];
      json['data'].forEach((v) {
        _data?.add(HomeBannerBean.fromJson(v));
      });
    }
    _code = json['code'];
    _msg = json['msg'];
  }
  List<HomeBannerBean>? _data;
  int? _code;
  String? _msg;
HomeBannerBeanResult copyWith({  List<HomeBannerBean>? data,
  int? code,
  String? msg,
}) => HomeBannerBeanResult(  data: data ?? _data,
  code: code ?? _code,
  msg: msg ?? _msg,
);
  List<HomeBannerBean>? get data => _data;
  int? get code => _code;
  String? get msg => _msg;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_data != null) {
      map['data'] = _data?.map((v) => v.toJson()).toList();
    }
    map['code'] = _code;
    map['msg'] = _msg;
    return map;
  }

}

/// id : 1
/// imagepath : "https://alifei05.cfp.cn/creative/vcg/veer/800/new/VCG41N883173568.jpg"
/// imgorder : 1
/// title : "美女"
/// url : null
/// type : 0

class HomeBannerBean {
  HomeBannerBean({
      int? id, 
      String? imagepath, 
      int? imgorder, 
      String? title, 
      dynamic url, 
      int? type,}){
    _id = id;
    _imagepath = imagepath;
    _imgorder = imgorder;
    _title = title;
    _url = url;
    _type = type;
}

  HomeBannerBean.fromJson(dynamic json) {
    _id = json['id'];
    _imagepath = json['imagepath'];
    _imgorder = json['imgorder'];
    _title = json['title'];
    _url = json['url'];
    _type = json['type'];
  }
  int? _id;
  String? _imagepath;
  int? _imgorder;
  String? _title;
  dynamic _url;
  int? _type;
HomeBannerBean copyWith({  int? id,
  String? imagepath,
  int? imgorder,
  String? title,
  dynamic url,
  int? type,
}) => HomeBannerBean(  id: id ?? _id,
  imagepath: imagepath ?? _imagepath,
  imgorder: imgorder ?? _imgorder,
  title: title ?? _title,
  url: url ?? _url,
  type: type ?? _type,
);
  int? get id => _id;
  String? get imagepath => _imagepath;
  int? get imgorder => _imgorder;
  String? get title => _title;
  dynamic get url => _url;
  int? get type => _type;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['imagepath'] = _imagepath;
    map['imgorder'] = _imgorder;
    map['title'] = _title;
    map['url'] = _url;
    map['type'] = _type;
    return map;
  }

}